package fnord.illuminati.order;

import java.util.Collection;

import fnord.illuminati.card.Connection;
import fnord.illuminati.card.GroupCard;
import fnord.network.server.Player;

public class AttackOrder extends Order {
	private static final long serialVersionUID = -5671383582725328194L;
	
	private final int _transferablePower;
	private final AttackType _attackType;
	private final Collection<GroupCard> _tpowergroups;
	private final Connection _toConnection;
	
	public int getTransferablePower() { return _transferablePower; }
	public AttackType getAttackType() { return _attackType; }
	
	public AttackOrder(Player player, GroupCard from, GroupCard to, AttackType attackType, int transferablePower, Collection<GroupCard> tpowergroups, Connection connectTo) {
		super(player, from, to);
		_attackType = attackType;
		_transferablePower = transferablePower;
		_tpowergroups = tpowergroups;
		_toConnection = connectTo;
	}
	public Connection getConnection() {
		return _toConnection;
	}
	public Collection<GroupCard> getTPowerGroups() {
		return _tpowergroups;
	}
}
